# coding:utf-8

name_01 = tuple(['dewei', '小慕'])
print(type(name_01))

"""
列表长度可变,元组不可变
"""
str_tuple = ('dewei', 'haha', '', "")
int_tuple = (1, 2, 3, 4, 5, 110)
float_tuple = (1.1, 10.3, 0.1, 0.0, 3.14)
bool_tuple = (True, False, False, True)
none_tuple = (None, None, None)
tuple_tuple = ((1, 2, 3), (4, 5, 6))
list_tuple = ([1, 2, 3], [4, 5, 6])

# in,max,min在tuple中的使用
existed = 1 in int_tuple
print(existed)
tuple_test = ('dewei',)
print(type(tuple_test))

# 长度
print(len(str_tuple))

# 遍历tuple
for a in tuple_test:
    print(a)
